package com.tencreat.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 余额类型枚举
 */
public enum BalanceTypeEnum {

    CONSUMER_ROLL(1, "消费券"),
    GOODS_ROLL(2, "提货单"),
/*    CASH_INTEGRAL(2, "现金积分"),
    BUY_INTEGRAL(3, "购物积分"),*/

    FINANCE_WAIT(3, "供应商待结算货款"),
    FINANCE(4, "供应商货款"),
    WAIT_INCOME(5,"待结算收益"),
    INCOME(6,"收益"),

    BALANCE(7,"余额"),
    WAIT_GOODS_ROLL(8,"结算中提货单"),
    STORE_FINANCE_WAIT(9, "店铺待结算货款"),
    STORE_FINANCE(10, "店铺货款"),
    RECHARGE_LIMIT_CHANGE(11,"代采购额度"),
    ;



    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    BalanceTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    /**
     * 单个枚举的展示
     */
    @Override
    public String toString() {
        return value + "-" + desc;
    }
}
